package homework;

import java.time.DayOfWeek;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class Demo5 {
    public static void main(String[] args) {
        String s="2018年02月14日";
        DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy年MM月dd日");
        LocalDate parse = LocalDate.parse(s, dtf);
        DayOfWeek dayOfWeek = parse.getDayOfWeek();
        System.out.println(dayOfWeek);
    }
}
